package com.lagou.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface SysRegionDao {


    /**
     * 插入操作
     * @param regionName
     * @param regionCode
     * @param regionLevel
     * @return
     */
    @Insert("insert into sys_region(region_name, region_code, region_level) values(#{region_name}, #{region_code}, #{region_level})")
    public int insertRegion(@Param("region_name") String regionName, @Param("region_code") String regionCode, @Param("region_level") Integer regionLevel);

}
